<style>
    .tip{
        padding-top: 10px;
        color: #b2b2b2;
    }
</style>

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group hidden">
        <div class="col-xs-12 col-sm-8">
            <input id="c-usepassword"  class="form-control" name="row[usepassword]" type="text" value="{$row.usepassword|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('账户名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('账户状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[enable]-{$key}"><input id="row[enable]-{$key}" name="row[enable]" type="radio" value="{$key}" {in name="key" value="$row.enable"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('到期时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apply_date"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[apply_date]" type="text" value="{:$row.disabledate . ' '.$row.disabletime}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('到期策略')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="autoDisableList" item="vo"}
                <label for="row[autodisable]-{$key}"><input id="row[autodisable]-{$key}" name="row[autodisable]" type="radio" value="{$key}" {in name="key" value="$row.autodisable"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('账户密码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password" class="form-control" name="row[password]" type="text" value="{$row.password|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('启用密码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="usePasswordList" item="vo"}
                <label for="row[usepassword]-{$key}"><input id="row[usepassword]-{$key}" name="row[usepassword]" type="radio" value="{$key}" {in name="key" value="$row.usepassword"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
